#include <bits/stdc++.h>
using namespace std;
int main()
{
	int h;
	cin >> h;
	int ans=0;
	int sum=0;
	while(sum<=h)
	{
		sum=sum+pow(2,ans);
		ans++;
	}
	cout << ans << endl;
	return 0;
}
